<?php
/**
 * @author Tibor Pino (tibor.pino@gmail.com)
 * @license released under GNU Public License v. 2
 * @copyright Copyright (c) 2007, Tibor Pino
 *
 */

class PaginationHelper extends Helper {

    public $helpers = array('Paginator');

    public function create($url=null,$ajax_div=null) {
        $this->Paginator->options(array('url'=>$url,'update'=>$ajax_div));
        $content = '<div class="pagination">'.$this->Paginator->prev().' <strong>'.$this->Paginator->numbers().'</strong> '.$this->Paginator->next().'</div>';

        return $this->output($content);
    }
}
 ?>